﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;
using CondominiosREST.Dominio;

namespace CondominiosREST
{
    [ServiceContract]
    public interface IMorosos
    {
        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "Morosos", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        string RegistrarMoroso(Moroso moroso);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Morosos/{dni}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        EstadoDeCuenta ConsultarEstadoDeMorosos(string dni);
    }
}
